Skip to content

Conversation

@albertomercurio
Copy link
Contributor

@albertomercurio albertomercurio commented Aug 12, 2025

In this PR I fix the following error

using SciMLOperators
using LinearAlgebra

l = ScalarOperator(1)
Id = I

l*Id
ERROR: StackOverflowError:
Stacktrace:
 [1] *::ScalarOperator{Int64, SciMLOperators.FilterKwargs{…}}, x::UniformScaling{Bool})
   @ SciMLOperators ~/.julia/packages/SciMLOperators/Gd0Qg/src/scalar.jl:369
 [2] *::ScalarOperator{Int64, SciMLOperators.FilterKwargs{…}}, x::UniformScaling{Bool}) (repeats 79983 times)
   @ SciMLOperators ~/.julia/packages/SciMLOperators/Gd0Qg/src/scalar.jl:372
Some type information was truncated. Use `show(err)` to see complete types.

FIxes #266

@ChrisRackauckas
Copy link
Member

Needs a test

@albertomercurio
Copy link
Contributor Author

Done

@ChrisRackauckas
Copy link
Member

looks like alloc test fails?

@albertomercurio
Copy link
Contributor Author

Only the LTS case, as in all the previous PRs starting from #288, for what I can see. That should be related to AddedOperator rather than this fix on ScalarOperator

@ChrisRackauckas ChrisRackauckas merged commit 3ffe8cd into SciML:master Aug 21, 2025
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SciMLOperators 0.3.13 ScalarOperator UniformScaling mulitplication stackoverflow

2 participants